from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import (
    AITemplateViewSet,
    RequirementAnalysisViewSet,
    AIGenerationLogViewSet,
    GeneratedTestCaseMappingViewSet,
    AIServiceViewSet
)

router = DefaultRouter()
router.register(r'ai-templates', AITemplateViewSet)
router.register(r'requirement-analyses', RequirementAnalysisViewSet)
router.register(r'ai-generation-logs', AIGenerationLogViewSet)
router.register(r'generated-case-mappings', GeneratedTestCaseMappingViewSet)
router.register(r'ai-services', AIServiceViewSet, basename='ai-services')

urlpatterns = [
    path('', include(router.urls)),
]